<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>点击事件</p>
        <p v-show="isboll"> 11111</p>
        <button @click="changec">{{massage1}}</button>
        <button @click='changeb'>点我改变bull值</button>
        {{massage}}
    </div>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        new Vue({
            //挂载
            el: "#app",
            data: {
                massage1: "hi",
                massage: "hello",
                isboll: true,
            },
            //事件
            methods: {
                changec() {
                    this.massage = this.massage.split("").reverse().join("")
                    this.massage = "你吃饭了吗",
                        this.massage1 = "我吃好了"
                },
                changeb() {
                    this.massage = "massage";
                }
            }

        })
    </script>
</body>

</html>